home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10923 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  664 b 

  1. Path: news.ov.com!news
  2. From: glenn@ov.com (Fletcher.Glenn@ov.com)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Calling a function in variable
  5. Date: 20 Mar 1996 22:10:16 GMT
  6. Organization: OpenVision
  7. Message-ID: <4ipvo8$8mk@spanky.pls.ov.com>
  8. References: <4ikjlq$71@Server2.swix.ch>
  9. Reply-To: glenn@ov.com
  10. NNTP-Posting-Host: foghorn.pls.ov.com
  11.  
  12. In article 71@Server2.swix.ch, Aurelio Caliaro <caliaro@swix.ch> writes:
  13. >It is strange but I can't remember how I need to call a 
  14. >function whose address is in a variable. 
  15. >If the function address is in "(void*)Addr", how do I 
  16. >call it? 
  17. >  Aurelio 
  18. >
  19.  
  20. Try:
  21.        (*Addr)(your arguments here);
  22.  
  23.             Fletcher.Glenn@ov.com
  24.  
  25.  
  26.